<?php /* Smarty version Smarty-3.1.8, created on 2019-07-16 20:15:29
         compiled from "/Users/aron/GitRepos/PHPBroShop/broshop/admin/views/default/order/index.html" */ ?>
<?php /*%%SmartyHeaderCode:15336094575d2dbfe1210656-59876002%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b9d0d0fd1337e512b1a32abba99b4a4745c3e27e' => 
    array (
      0 => '/Users/aron/GitRepos/PHPBroShop/broshop/admin/views/default/order/index.html',
      1 => 1450315306,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15336094575d2dbfe1210656-59876002',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'url' => 0,
    'info_list' => 0,
    'v' => 0,
    'kk' => 0,
    'root' => 0,
    'vv' => 0,
    'paywayarr' => 0,
    'fpage' => 0,
    'public' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5d2dbfe14ed7b3_33089064',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5d2dbfe14ed7b3_33089064')) {function content_5d2dbfe14ed7b3_33089064($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/Users/aron/GitRepos/PHPBroShop/broshop/brophp/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m"><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>

	<div class="search">
		<div class="fl qiehuan">
			<a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
" <?php if (empty($_GET['state'])){?> class="sel" <?php }?> >全部订单</a>
			| <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&state=1" <?php if ($_GET['state']==1){?> class="sel" <?php }?>>未付款</a>
			| <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&state=2" <?php if ($_GET['state']==2){?> class="sel" <?php }?>>待发货</a>
			| <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&state=3" <?php if ($_GET['state']==3){?> class="sel" <?php }?>>已发货</a>
			| <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&state=4" <?php if ($_GET['state']==4){?> class="sel" <?php }?>>成功订单</a>

		</div>
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="m" value="<?php echo $_GET['m'];?>
" />
				订单编号：<input type="text" name="id" value="<?php echo $_GET['id'];?>
" class="inputtext input100" />
				收货姓名：<input type="text" name="utname" value="<?php echo $_GET['utname'];?>
" class="inputtext input100" />
				联系方式：<input type="text" name="uphone" value="<?php echo $_GET['uphone'];?>
" class="inputtext input100" />
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<div class="hy_table">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_tb_tt">
		<tr>
			<td class="bg_f8" width="">商品详情</td>
			<td class="bg_f8" width="120">实付款(元)</td>
			<td class="bg_f8" width="120">交易操作</td>
			<td class="bg_f8" width="120" style="border-right:0;">订单详情</td>
		</tr>
		</table>
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['info_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
			<div class="hy_table_order c666">
				<span class="fl">订单编号：<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</span>
				<span class="fr">下单时间：<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['atime'],'%Y-%m-%d %H:%M');?>
</span>
				<div class="clear"></div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #D4E7FF;">
			<tr>
				<td style="text-align:left;">
					<?php  $_smarty_tpl->tpl_vars['vv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vv']->_loop = false;
 $_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value['product_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vv']->key => $_smarty_tpl->tpl_vars['vv']->value){
$_smarty_tpl->tpl_vars['vv']->_loop = true;
 $_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['vv']->key;
?>
					<div class="dingdan_list" <?php if ($_smarty_tpl->tpl_vars['kk']->value==0){?>style="padding-top:0"<?php }?>>
						<a href="<?php echo $_smarty_tpl->tpl_vars['root']->value;?>
/index.php?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['vv']->value['pid'];?>
" class="fl mar5"><img src="<?php echo thumb($_smarty_tpl->tpl_vars['vv']->value['plogo'],60,60);?>
" width="45" height="45"></a>
						<div class="fl font12">
							<a href="<?php echo $_smarty_tpl->tpl_vars['root']->value;?>
/index.php?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['vv']->value['pid'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['vv']->value['pname'];?>
" target="_blank" class="cblue dd_name"><?php echo $_smarty_tpl->tpl_vars['vv']->value['pname'];?>
</a>
							</div>
							<span class="fr font12"><span class="num">￥<?php echo $_smarty_tpl->tpl_vars['vv']->value['pmoney'];?>
</span>(×<?php echo $_smarty_tpl->tpl_vars['vv']->value['pnum'];?>
)</span>
						<div class="clear"></div>
					</div>
					<?php } ?>
				</td>
				<td width="100">
					<p class="cred num font14 strong"><?php echo $_smarty_tpl->tpl_vars['v']->value['order_money'];?>
</p>
					<p class="c888 font12"><?php if ($_smarty_tpl->tpl_vars['v']->value['wlmoney']==0){?>(卖家包邮)<?php }else{ ?>(含运费<?php echo $_smarty_tpl->tpl_vars['v']->value['wlmoney'];?>
元)<?php }?></p>
				</td>
				<td width="100">

				<!--货到付款-->
				<?php if ($_smarty_tpl->tpl_vars['v']->value['payway']==3){?>
					<?php if ($_smarty_tpl->tpl_vars['v']->value['state']==1){?>
					<p class="cgreen font13">订单创建成功</p>
					<p><a class="shouhuo_btn" href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=state&state=3&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" onclick="return bro_dialog(this, '填写快递信息')">发货</a></p>
					<?php }elseif($_smarty_tpl->tpl_vars['v']->value['state']==3){?>
					<p class="cgreen font13">卖家已经发货</p>
					<p><a class="pay_btn" href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=state&state=2&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" onclick="return confirm('你确定要付款吗？')">付款</a></p>
					<?php }elseif($_smarty_tpl->tpl_vars['v']->value['state']==4){?>
					<p class="cgreen font13">交易成功</p>
					<?php }?>
				<!--先款后货-->
				<?php }else{ ?>
					<?php if ($_smarty_tpl->tpl_vars['v']->value['state']==1){?>
					<p class="cgreen font13">订单创建成功</p>
					<p><a class="pay_btn" href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=state&state=2&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" onclick="return confirm('你确定要付款吗？')">付款</a></p>
					<?php }elseif($_smarty_tpl->tpl_vars['v']->value['state']==2){?>
					<p class="cgreen font13">买家付款成功</p>
					<p><a class="shouhuo_btn" href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=state&state=3&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" onclick="return bro_dialog(this, '填写快递信息')">发货</a></p>
					<?php }elseif($_smarty_tpl->tpl_vars['v']->value['state']==3){?>
					<p class="cgreen font13">卖家已经发货</p>
					<p class="cred font13">支付宝还未确认</p>
					<?php }elseif($_smarty_tpl->tpl_vars['v']->value['state']==4){?>
					<p class="cgreen font13">交易成功</p>
					<?php }?>
				<?php }?>
				<p class="c888 font12 mat3"><?php echo $_smarty_tpl->tpl_vars['paywayarr']->value[$_smarty_tpl->tpl_vars['v']->value['payway']];?>
</p>
				</td>
				<td width="100">
					<a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=mod&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" target="_blank" class="font13">订单详情</a>
					<?php if ($_smarty_tpl->tpl_vars['v']->value['state']==1){?>
					<p class="mat3"><a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=del&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" onclick="return confirm('确定要删除订单')" class="cblue font12">删除订单</a></p>
					<?php }?>
				</td>
			</tr>
			</table>
			<?php } ?>
			<div class="hy_pay">
				<?php echo $_smarty_tpl->tpl_vars['fpage']->value;?>

			</div>
	</div>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script charset="utf-8" src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/js/plugin/artdialog/jquery.artDialog.js?skin=chrome"></script>
<script charset="utf-8" src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/js/plugin/artdialog/plugins/iframeTools.js"></script>

<?php }} ?>